#include "library/Vector.hh"
#include <cstdio>
#include <iostream>
using namespace std;
struct Icrease {
	virtual void operator()(int &e) {
		e++;
	}
};
struct Print {
	virtual void operator()(int &e) {
		std::cout << e << " ";
	}
};

void increase(Vector &V) {
	V.traverse(Icrease());
}
void print(Vector &V) {
	std::cout << "V: ";
	V.traverse(Print());
	std::cout << "size of V->" << V.size() << std::endl;
}

int main(int argc, char **argv) {
	int A[] = {1, 4, 2, 3};
	Vector V(A, 0, 4);
	print(V);
	V.sort(1);
	print(V);

	return 0;
}
